﻿using System;
using System.Xml.Serialization;
using PSE.Deployment.SetupBase.Parameter;
using Sinacor.Deployment.Setup.Configuration;

namespace Sinacor.Deployment.Setup.Parameter
{
    [Serializable]
    [XmlInclude(typeof(SinacorConfiguration))]
    public class SinacorParameter : SetupParameter
    {
        public new Prerequisites Prerequisites { get; set; }
        public DataBase DataBase { get; set; }
        [XmlAttribute()]
        public string ConfigPathServiceInstance
        {
            get { return InstallationPath + @"Sinacor\Servicos"; }
            set { }
        }
        [XmlAttribute()]
        public string AlternativeLogFilePath
        {
            get { return InstallationPath + "Logging"; }
            set { }
        }

        public SinacorParameter()
        {
            this.DataBase = new DataBase();
            this.Prerequisites = new Prerequisites();
            this.SetupConfiguration = new SinacorConfiguration();
        }
    }
}